package com.itheima.pojo;




public class ApproverEnum {

// 发起人
   public static final  String faqiren="faqiren";
//图档人
    public static final  String tuDangList="tuDangList";

// 负责人
    public static  final  String fuzerenList="fuzerenList";



    //校对人
    public static  final  String xiaoduirenList="xiaoduirenList";


    //审核人
    public static final String shenherenList="shenherenList";


    //审定人

    public static final String shendingrenList="shendingrenList";

   //设计人
    public static final String shejirenList="shejirenList";


   // 设计支持人
    public static final  String shejizhuchirenList="shejizhuchirenList";


    //会签人
    public static  final String huiqianList="huiqianList";



    //会签任个数‘

    public static  final String huiqianNum="huiqianNum";



   //图档人个数
    public static final String tuDangNum="tuDangNum";



    //设计章或者建组章审批人个数
    public  static  final  String zhangrenNum="zhangrenNum";



    //注册章人审批
    public static final String  zhangrenList="zhangrenList";


    // 项目经理审批
    public static final String xiangmujingliList="xiangmujingliList";

    //部門负责人审批
    public static final String bumenfuzerenList="bumenfuzerenList";

    //成果确认 第一设计支持人
    public static  final String diyishejizhuchirenList= "diyishejizhuchirenList";

    //成果确认第一审计主持人个数
    public static  final String diyishejizhuchirenNum= "diyishejizhuchirenNum";


    //流程的key 成果确认 参数中type字段
    public  static  final String results_confirm="results_confirm";

    //流程的key 用章申请 参数中type字段
    public static final String in_chapter_approval="in_chapter_approval";

    // 特殊节点 只有一个人审批就可以通过 图档人

    public static final String tudangName="图档人员";


    //流程中文名
    public static final String yongzhang="用章申请";

   /* 绿通增加审批角色*/
   // 绿通部门领导
   public static final String bumenlingdaoList="bumenlingdaoList";

    //绿通系统管理员
    public static final String xitongguanliyuanList="xitongguanliyuanList";

    //绿通主管部门领导
    public  static  final String zhuguanbumenlingdaoList="zhuguanbumenlingdaoList";

    //绿通相关院审批
    public static final String xiangguanyuanlingdaoList="xiangguanyuanlingdaoList";

    // 绿通 项目相关人员审批
    public static final String xiangmuxiangguanrenList="xiangmuxiangguanrenList";

    // 绿通 信息化办公室人员审批
    public static final String xinxibangonghuarenList="xinxibangonghuarenList";



    public static String getRoleName(String roleType){
        String rolename="";
        switch (roleType){
            case "faqiren":
                rolename="发起人";
                break;
            case "tuDangList":
                rolename="图档人";
                break;
            case "fuzerenList":
                rolename="专业负责人";
                break;
            case "xiaoduirenList":
                rolename="校对人";
                break;
            case "shenherenList":
                rolename="审核人";
                break;
            case "shendingrenList":
                rolename="审定人";
                break;
            case "shejizhuchirenList":
                rolename="设计主持人";
                break;
            case "huiqianList":
                rolename="会签人";
                break;
            case "zhangrenList":
                rolename="注册章人";
                break;
            case "xiangmujingliList":
                rolename="项目经理";
                break;
            case "shejirenList":
                rolename="设计人";
                break;
            case "bumenfuzerenList":
                rolename="部门负责人";
                break;
            case "diyishejizhuchirenList":
                rolename="第一设计主持人";
                break;
            default:
                rolename="";
                break;
        }

        return rolename;
    }

    public  static Integer getStatus(String status){
        // 审核状态 none:未审核 pass 通过 unpass：未通过  auditing:审核中'
        // 审批状态 0 未审核   1 通过 2 拒绝  3 审核中
        Integer stautsCn=0;
        switch (status){
            case "none":
                stautsCn=0;
                break;
            case "pass":
                stautsCn=1;
                break;
            case "unpass":
                stautsCn=2;
                break;
            case "auditing":
                stautsCn=3;
                break;

            default:
                stautsCn=0;
                break;
        }
        return stautsCn;

    }



}
